const Message=(status,msg,data)=>{
  return {
    code: 200,
    data: {
      status: status,
      data: data?data:null,
      message: msg?msg:null,
    }
  }
}

const MessageList=(status,msg,data,page,pageSize,count)=>{
  return {
    code: 200,
    data: {
      status: status,
      message: msg?msg:null,
      list: data,
      page,
      pageSize,
      total: count
    }
  }
}

module.exports={
  Message,
  MessageList
}